package ms.unicorn.ui.decorators;

import ms.unicorn.modellanguage.DecoratorProxy;

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.PolygonDecoration;
import org.eclipse.draw2d.RotatableDecoration;

public class ConnectorSolidArrow extends ConnectorDecorator {

	@Override
	protected RotatableDecoration createDecoration(DecoratorProxy config) {
		RotatableDecoration decor = new PolygonDecoration();
		decor.setForegroundColor(config.getColorParam("color", ColorConstants.black));
		decor.setBackgroundColor(config.getColorParam("fillcolor", ColorConstants.white));
		return decor;
	}

}
